package com.tcd.explore.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tcd.outRisk.entity.ClaimMainInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 核损信息表
 * </p>
 *
 * @author Jarle
 * @since 2021-05-25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class VerifyLossInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 核损编号
     */
    @TableId(value = "verifyLossId")
    private Long verifylossid;


    public VerifyLossInfo(Long verifylossid, Long claimmainid, BigDecimal verifylosscost, String verifylossopinion, BigDecimal objverinfototal, BigDecimal carverinfototal, BigDecimal humanverinfototal) {
        this.verifylossid = verifylossid;
        this.claimmainid = claimmainid;
        this.verifylosscost = verifylosscost;
        this.verifylossopinion = verifylossopinion;
        this.objverinfototal = objverinfototal;
        this.carverinfototal = carverinfototal;
        this.humanverinfototal = humanverinfototal;
    }

    /**
     * 赔案编号(外键)
     */
    @TableField("claimMainId")
    private Long claimmainid;

    /**
     * 核损费用小计（车、物、人相加的费用总计）
     */
    @TableField("verifyLossCost")
    private BigDecimal verifylosscost;
    @TableField("verify_loss_no")
    private String verifylossno;
    /**
     * 核损日志
     */
    @TableField("verifyLossOpinion")
    private String verifylossopinion;
    private BigDecimal objverinfototal;
    private BigDecimal carverinfototal;
    private BigDecimal humanverinfototal;
    @TableField(exist = false)
    private List<HumanInjuryInfo> hlist;
    @TableField(exist = false)
    private ClaimMainInfo cliam;
    @TableField(exist = false)
    private SurveyLossInfo surveyLossInfo;
    @TableField(exist = false)
    private List<ObjectDamageInfo> olist;
    private String verifystatus;
    private String uid;
    @TableField(exist = false)
    private List<CarDamageInfo> clist;
}
